<!doctype html>
<html dir="ltr" lang="zh-tw">
<head>
    <title>東方超捷</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <meta property="og:type" content="website"/>
    <meta property="og:site_name" content="東方超捷國際物流股份有限公司"/>
    <meta property="og:url" content="https://www.ofscoltd.com/tools/size">
    <meta property="og:title" content="東方超捷">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="author" content="Codepulse"/>
    <base href="https://www.ofscoltd.com/"/>
    <meta name="title" content="東方超捷"/>
            <meta name="description" content="東方超捷國際物流股份有限公司"/>
        <meta property="og:description" content="東方超捷國際物流股份有限公司">
                <meta name="keywords" content="東方超捷國際物流股份有限公司"/>
        <meta property="og:keyword" content="東方超捷國際物流股份有限公司">
        
    <link href="https://www.ofscoltd.com/image/cache/catalog/logo-40x40.png?v=1714376080" rel="icon">
<!--    <link href="https://ntur.ihstar.codepulse.tw/image/cache/catalog/4510.png_860-40x40.png?v=1665045713" rel="icon">-->

    <!--  Plugins -->
    <link href="catalog/view/theme/default/assets/css/animate.css" rel="stylesheet" type="text/css">
    <link href="catalog/view/theme/default/assets/css/animation_custom.css" rel="stylesheet" type="text/css">
    <link href="catalog/view/theme/default/assets/css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="catalog/view/theme/default/assets/css/fontawesome.all.min.css" rel="stylesheet" type="text/css">
    <link href="catalog/view/theme/default/assets/css/slick.css" rel="stylesheet" type="text/css">
    <link href="catalog/view/theme/default/assets/css/magnific-popup.css" rel="stylesheet" type="text/css">
    <link href="catalog/view/theme/default/assets/css/waves.min.css" rel="stylesheet" type="text/css">

    <link rel="stylesheet" href="//code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css"/>

    <!--  Customized -->
    <link href="catalog/view/theme/default/assets/css/common.css?t=1762394337" rel="stylesheet" type="text/css">

    <script src="catalog/view/theme/default/assets/js/jquery-3.6.0.min.js"></script>
    <script src="https://code.jquery.com/ui/1.13.2/jquery-ui.js"></script>

            <!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-Q61V66KYPT"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-Q61V66KYPT');
</script>    </head>


<body>
    <div class="headerwrap">
    <header class="topbar">
        <div class="container-fluid">
            <nav class="navbar navbar-expand-lg p-0">
                <a href="/">
                    <div class="navbar-brand white" style="background-image:url('catalog/view/theme/default/assets/img/logo_w.svg');"></div>
                    <div class="navbar-brand" style="background-image:url('catalog/view/theme/default/assets/img/logo.svg');"></div>
                </a>
                <!-- <a class="navbar-brand" href="index.php" style="background-image:url('catalog/view/theme/default/assets/img/logo_w.svg');"></a> -->
                <button class="navbar-toggler collapsed" type="button" data-toggle="collapse" data-target="#navbar">
                    <span class="navbar-toggler-icon"><i class="fas fa-bars"></i></span>
                </button>
                <div class="collapse navbar-collapse" id="navbar">
                    <ul class="navbar-nav mr-0 ml-auto">
                        <li class="nav-item">
                            <a class="nav-link" href="企業解決方案"><span>企業解決方案</span></a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="業務內容"><span>業務內容</span></a>
                        </li>
                        <li class="nav-item has_submenu">
                            <a class="nav-link" href="javascript:;"><span>查詢及追蹤</span></a>
                            <div class="submenu">
                                <ul>
                                    <li><a href="/cfs"><span>CFS船期查詢</span></a></li>
                                    <li><a href="#" target="_blank"><span>CY船期查詢</span></a></li>
                                    <li><a href="http://tracking.olc-group.com/ofs_GLSTrack/#/seaPubTrack" target="_blank"><span>海運貨況追蹤</span></a></li>
                                    <li><a href="http://express.ofscoltd.com:8012/Home/CargoTracking" target="_blank"><span>快遞追蹤查詢</span></a></li>
                                </ul>
                            </div>
                        </li>
                        <li class="nav-item has_submenu">
                            <a class="nav-link" href="javascript:;"><span>客戶服務</span></a>
                            <div class="submenu">
                                <ul>
                                    <li><a href="/inquiry"><span>詢價與諮詢</span></a></li>
                                    <li><a href="/tools"><span>航運小工具</span></a></li>
                                </ul>
                            </div>
                        </li>
                        <li class="nav-item has_submenu">
                            <a class="nav-link" href="javascript:;"><span>聯絡我們</span></a>
                            <div class="submenu">
                                <ul>
                                    <li><a href="/contactus"><span>東方超捷</span></a></li>
                                    <!-- 請串接代理網絡 -->
                                    <li><a href="/network"><span>代理網絡</span></a></li>
                                </ul>
                            </div>
                        </li>
                        <li class="nav-item has_submenu">
                            <a class="nav-link" href="javascript:;"><span>關於我們</span></a>
                            <div class="submenu">
                                <ul>
                                    <li><a href="OFS"><span>東方超捷</span></a></li>
                                    <li><a href="倉儲介紹"><span>倉儲介紹</span></a></li>
                                    <li><a href="certification"><span>專業認證</span></a></li>
                                                                            <li><a href="1231321321"><span>公益活動</span></a></li>
                                                                                                                <li><a href="公告訊息URL"><span>公告訊息</span></a></li>
                                                                        <li><a href="https://www.104.com.tw/company/1a2x6bm9s6?jobsource=cs_2018indexpoc" target="_blank"><span>人才招募</span></a></li>
                                </ul>
                            </div>
                        </li>
                        <li class="nav-item has_submenu">


                            <a class="nav-link" href="javascript:void(0)">
                                <!--                                <img src="--><? //=$now_language['img'];?><!--">-->
                                <span> 繁體中文</span>
                            </a>

                            <div class="submenu">
                                <ul>
                                                                            <li>
                                            <a href="https://www.ofscoltd.com/en-gb/tools/size">
                                                <!--                                                    <img src="--><? //=$language['img'];?><!--">-->
                                                <span> English</span>
                                            </a>
                                        </li>
                                                                            <li>
                                            <a href="https://www.ofscoltd.com/zh-cn/tools/size">
                                                <!--                                                    <img src="--><? //=$language['img'];?><!--">-->
                                                <span> 简体中文</span>
                                            </a>
                                        </li>
                                                                    </ul>
                            </div>
                        </li>
                    </ul>
                </div>
            </nav>
        </div>
    </header>
</div><div class="pagecont">
    <section class="pagebanner page-wrap">
        <!-- 航運小工具背景不同 -->
        <div class="box-img" style="background-image:url('catalog/view/theme/default/assets/img/banner.png');"></div>
        <div class="container">
            <ol class="breadcrumb body">
                                                            <li class="breadcrumb-item JQellipsis"><a href="https://www.ofscoltd.com/zh-tw/">首頁</a></li>
                                                                                <li class="breadcrumb-item JQellipsis"><a href="javascript:void(0)">客戶服務</a></li>
                                                                                <li class="breadcrumb-item JQellipsis"><a href="/tools">航運小工具</a></li>
                                                                                <li class="breadcrumb-item JQellipsis">度量衡換算</li>
                                                </ol>
            <div class="title-wrap">
                <div class="col-12 title wow fadeInDown animated">Customer <span>Service</span></div>
                <div class="col-12 subtitle wow fadeInDown animated" data-wow-delay=".5s">航運小工具</div>
            </div>
        </div>
    </section>
    <div class="search-item">
        <div class="row">
            <div class="col-12 nav-bar">
                <div class="container">
                    <ul class="nav" id="tab02" role="tablist">
                        <li class="nav-item">
                            <a class="nav-link " id="ocean-tab" href="tools/ocean">
                                <i class="icon-ocean"></i>
                                <span>海運材積計算</span>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link " id="air-tab" href="tools/air">
                                <i class="icon-air"></i>
                                <span>空運材積計算</span>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link " id="norm-tab" href="tools/norm">
                                <i class="icon-norm"></i>
                                <span>貨櫃規格明細</span>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link active" id="size-tab" href="tools/size">
                                <i class="icon-size"></i>
                                <span>度量衡換算</span>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <!-- 功能對應頁面切換 -->
        <div class="container">
            <div class="container">
    <div class="row justify-content-center">
        <div class="col-xl-8 col-lg-8 col-md-8 col-12">
            <form id="size-form" class="needs-validation" novalidate>
                <div class="form-group mb-5 pb-2">
                    <div class="form-check-inline">
                        <input type="radio" name="setTypeVal" id="size-radio01" value="length" class="form-check-input" checked>
                        <label class="form-check-label" for="size-radio01">長度</label>
                    </div>
                    <div class="form-check-inline">
                        <input type="radio" name="setTypeVal" id="size-radio02" value="area" class="form-check-input">
                        <label class="form-check-label" for="size-radio02">面積</label>
                    </div>
                    <div class="form-check-inline">
                        <input type="radio" name="setTypeVal" id="size-radio03" value="volume" class="form-check-input">
                        <label class="form-check-label" for="size-radio03">體積</label>
                    </div>
                    <div class="form-check-inline">
                        <input type="radio" name="setTypeVal" id="size-radio04" value="weight" class="form-check-input">
                        <label class="form-check-label" for="size-radio04">重量</label>
                    </div>
                </div>
                <!-- 各單位有備註在線框圖內,欄位需自動加上千位分隔符,以下請留意 -->
                <!-- 長度單位：英吋、公分、公釐、英呎、碼、英哩、公里
                面積單位：平方英吋、平方公分、平方公釐、平方英呎、
                平方碼、平方英哩、平方公里、英畝、公頃
                體積單位：立方英吋、立方公分、立方公釐、立方英呎、
                立方碼、公升、加侖、美加侖、盎司、立方毫升
                重量單位：盎司、公克、磅、公斤、英噸、公噸、美噸 -->
                <div class="form-row mb-5 pb-2 align-items-center justify-content-center">
                    <div class="form-group" style="width:42.5%;">
                        <select id="setType1" class="form-control mb-4" required>

                        </select>
                        <input type="number" min="0" step="0.01" id="setNumber" class="form-control" placeholder="請輸入數字">
                    </div>
                    <div class="text-center" style="width:15%;">
                        <button class="btn-swap" type="button" id="swapType_btn">
                            <i class="fas fa-exchange-alt"></i>
                        </button>
                    </div>
                    <div class="form-group" style="width:42.5%;">
                        <select id="setType2" class="form-control mb-4" required>

                        </select>
                        <input type="text" class="form-control" id="calVal" placeholder="計算結果" disabled>
                    </div>
                </div>

                <div class="text-center">
                    <button class="btn btn-list m-auto" type="button" id="clear_btn"><span>清除重算</span></button>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    //單位設定參數處理
    var setCalDatas = {
        "length": {
            "cm": {"str": "公分", "cal": 1},
            "mm": {"str": "公釐", "cal": 10},
            "m": {"str": "公尺", "cal": 0.01},
            "km": {"str": "公里", "cal": 0.00001},
            "inch": {"str": "英吋", "cal": 0.393701},
            "ft": {"str": "英呎", "cal": 0.0328084},
            "yd": {"str": "碼", "cal": 0.0109361},
        },
        "area": {
            "cm": {"str": "平方公分", "cal": 1},
            "mm": {"str": "平方公釐", "cal": 100},
            "m": {"str": "平方公尺", "cal": 0.0001},
            "km": {"str": "平方公里", "cal": 0.0000000001},
            "inch": {"str": "平方英吋", "cal": 0.1550003},
            "ft": {"str": "平方英呎", "cal": 0.0010764},
            "yd": {"str": "平方碼", "cal": 0.0001196},
            "mi": {"str": "平方英哩", "cal": 0.0000000386},
            "ac": {"str": "英畝", "cal": 0.0000000247},
            "ht": {"str": "公頃", "cal": 0.00000001},
            "ping": {"str": "坪", "cal": 0.00003025},
        },
        "volume": {
            "cm": {"str": "立方公分", "cal": 1},
            "mm": {"str": "立方公釐", "cal": 1000},
            "inch": {"str": "立方英吋", "cal": 0.0610237},
            "ft": {"str": "立方英呎", "cal": 0.000035315},
            "yd": {"str": "立方碼", "cal": 0.0000013079},
            "l": {"str": "公升", "cal": 0.001},
            "gal": {"str": "加侖", "cal": 0.000219969},
            "ugal": {"str": "美加侖", "cal": 0.000264172},
            "oz": {"str": "盎司", "cal": 0.033814},
            "mL": {"str": "立方毫升", "cal": 1},
        },
        "weight": {
            "kg": {"str": "公斤", "cal": 1},
            "oz": {"str": "盎司", "cal": 35.27396195},
            "g": {"str": "公克", "cal": 1000},
            "lb": {"str": "磅", "cal": 2.2046226218},
            "lt": {"str": "英噸", "cal": 0.0009842065},
            "mt": {"str": "公噸", "cal": 0.001},
            "st": {"str": "美噸", "cal": 0.0011023113},
        }
    };

    $(document).ready(function () {
        setSelect('length');

        $("input[name='setTypeVal']").change(function () {
            let v = $(this).val();
            $("#setNumber").val('');
            $("#calVal").val('');
            setSelect(v);
        });

        $("#setType1,#setType2,#setNumber").change(function () {
            cal();
        });

        $("#swapType_btn").click(function(){
            let setType1 = $("#setType1").val();
            let setType2 = $("#setType2").val();
            $("#setType1").val(setType2);
            $("#setType2").val(setType1);
            cal();

        });
        $("#clear_btn").click(function(){
            $("#setNumber").val('');
            $("#calVal").val('');
        });

    });

    function setSelect(setTypeVal) {
        $("#setType1 option").remove();
        $("#setType2 option").remove();

        $.each(setCalDatas[setTypeVal], function (i, v) {
            $("#setType1").append($('<option></option>').val(i).text(v.str));
            $("#setType2").append($('<option></option>').val(i).text(v.str));
        });
    }

    function cal() {
        let setTypeVal = $("input[name='setTypeVal']:checked").val();
        let setType1 = $("#setType1").val();
        let setType2 = $("#setType2").val();
        let setNumber = $("#setNumber").val();

        //取得各單位的換算值
        console.log('setTypeVal', setTypeVal);
        console.log('setType1', setType1);
        console.log('setType2', setType2);

        console.log('test1', setCalDatas[setTypeVal][setType1]);

        let cal1 = setCalDatas[setTypeVal][setType1]['cal'];
        let cal2 = setCalDatas[setTypeVal][setType2]['cal'];

        calok = ((setNumber / cal1) * cal2);
        calok = fomatFloat(calok, 6);
        $("#calVal").val(calok);

    }

    function fomatFloat(src, pos) {
        return Math.round(src * Math.pow(10, pos)) / Math.pow(10, pos);
    }
</script>
        </div>
    </div>

    <!-- 這邊要處理後台的樣式對應 -->

    </div>
<section class="contact-content">
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-12 title wow fadeInDown animated">Contact <span>Us</span></div>
            <div class="col-12 subtitle wow fadeInDown animated" data-wow-delay=".5s">誠信經營 客戶第一</div>
            <button class="btn btn-more wow fadeInDown animated" data-wow-delay=".8s" data-url="/contactus"><span>Read More</span></button>
        </div>
    </div>
</section>
<footer class="footer">
    <div class="container">
        <div class="row no-gutters">
            <div class="col-xl-4 col-lg-4 col-md-12 col-12 logo wow fadeIn animated">
                <a href="index.php"><img alt="東方超捷國際物流LOGO" src="catalog/view/theme/default/assets/img/logo.svg"></a>
            </div>
            <div class="col-xl-4 col-lg-4 col-md-6 col-12 fax-box wow fadeIn animated">
                <ul class="row">
                    <li class="col-12"><div class="footer-title">東方超捷國際物流股份有限公司</div></li>
                    <li class="col-12"><a href="tel:886-2-25429029"><i class="fas fa-phone fa-fw"></i>886-2-25429029</a></li>
                    <li class="col-12"><a href="#"><i class="fas fa-fax fa-fw"></i>886-2-25429030</a></li>
                    <li class="col-12"><a href="mailto:general@ofscoltd.com"><i class="fas fa-envelope fa-fw"></i>general@ofscoltd.com</a></li>
                    <li class="col-12"><a href="#"><i class="fas fa-map-marker-alt fa-fw"></i>100504台北市中正區衡陽路51號9樓-1</a></li>
                </ul>
                <div class="row wow fadeIn animated">
                    <div class="col-12 sns-box">
                                                <a href="https://www.youtube.com/channel/UCwLzdDlgJwWqlCJqD1eJ0og/videos"><i class="fab fa-youtube"></i></a>
                                                                        <a href="https://www.facebook.com/orientallogisticsgroup"><i class="fab fa-facebook-square"></i></a>
                                            </div>
                </div>
            </div>
            <div class="col-xl-2 col-lg-2 col-md-3 col-6 link-box wow fadeIn animated">
                <ul class="row">
                    <li class="col-12"><div class="footer-title">查詢及追蹤</div></li>

                    <li class="col-12"><a href="/inquiry">詢價與諮詢</a></li>
                    <li class="col-12"><a href="/cfs">CFS船期查詢</a></li>
                    <li class="col-12"><a href="javascript:;" target="_blank">CY船期查詢</a></li>
                    <li class="col-12"><a href="javascript:;" target="_blank">海運貨況追蹤</a></li>

                </ul>
            </div>
            <div class="col-xl-2 col-lg-2 col-md-3 col-6 link-box01 wow fadeIn animated">
                <ul class="row">
                    <li class="col-12"><div class="footer-title">關於我們</div></li>
                    <li class="col-12"><a href="OFS">東方超捷</a></li>
                    <li class="col-12"><a href="倉儲介紹">倉儲介紹</a></li>
                    <li class="col-12"><a href="certification">專業認證</a></li>
                                            <li class="col-12"><a href="1231321321">公益活動</a></li>
                    
                                            <li class="col-12"><a href="公告訊息URL">公告訊息</a></li>
                    
                    <li class="col-12"><a href="https://www.104.com.tw/company/1a2x6bm9s6?jobsource=cs_2018indexpoc" target="_blank">人才招募</a></li>

                </ul>
            </div>
        </div>
    </div>
    <div class="copyright">東方超捷國際物流 © Copyright All Rights Reserved.</div>
</footer>
<div class="side_btn">
    <a class="plane-btn" href="/tools"><img src="catalog/view/theme/default/assets/img/tool-icon1.svg"></a>
    <a class="scrollToTop" href="#"><i class="fas fa-arrow-up"></i></a>
</div>

<script src="catalog/view/theme/default/assets/js/bootstrap.min.js"></script>
<script src="catalog/view/theme/default/assets/js/jquery.slick-1.9.0.min.js"></script>
<script src="catalog/view/theme/default/assets/js/wow.min.js"></script>
<script src="catalog/view/theme/default/assets/js/jquery.magnificpopup-1.1.0.min.js"></script>
<script src="catalog/view/theme/default/assets/js/waves-0.7.6.min.js"></script>
<script src="catalog/view/theme/default/assets/js/common.js"></script>
</body>
</html>
